package com.yanghx.product.service.impl;

import com.yanghx.product.entity.ProductCategory;
import com.yanghx.product.repository.ProductCategoryRepository;
import com.yanghx.product.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yangHX
 * createTime  2019/9/11 10:08
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Resource
    private ProductCategoryRepository productCategoryRepository;

    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList) {
        return productCategoryRepository.findByCategoryTypeIn(categoryTypeList);
    }
}
